click

abstract fun click()

Simulates a click on the extension action icon.

If the extension action has a popup configured, the OpenExtensionActionPopupCallback is invoked to allow you to embed the popup into a window. Otherwise, if the action does not have a popup, the action.onClicked event is dispatched to the action.

When an extension action popup for a browser is already opened, this method will not invoke OpenExtensionActionPopupCallback. However, the callback would still be invoked for other extensions. To close the extension action popup and start receiving the callback again, close the extension action popup's browser instance.

Throws

when the extension is uninstalled or the associated browser is closed

when the extension action is disabled